package com.example.agron.role;

import com.example.agron.common.http.UserResponse;
import com.example.agron.common.utils.PageChunk;
import com.example.agron.user.User;
import com.example.agron.user.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

public class RoleService {

    private final RoleRpository roleRpository;

    @Autowired
    public RoleService(RoleRpository roleRpository) {
        this.roleRpository = roleRpository;
    }

    public UserResponse<Role> searchRoles(int offset, int pageSize, String name, String email, String gender, String fieldBy, String field){
        UserResponse roles = UserResponse.success("");
        return roles;
    }

}
